Added shared methods.
Added very rough canny detector.
Updated main to create pupil detector. (Doesn't use it yet, though.)