EnumSortedMap added.  Also have more implementation and fine-tuning of
region-segmentation during clustering step.