Working prototype of 2d segmentation

Got a rough 2d implementation of the segmentation process working. It
includes plotting of elipses on image.