Implemented a square tracing algorithm to find contour lines of an
image.

Signed-off-by: Theo Chupp <chuppthe@msu.edu>