Added contour tracing algorithm.
Still not really accurate...