worked on new segmentation algorithm.  post processing remains to be sorted out...