Special needs student John Odgren was convicted yesterday of first-degree murder for killing a classmate whom he encountered randomly in school one morning, concluding a trial that tested the limits of the insanity defense and a high schools capacity to measure the dangerousness of a troubled teenager.