added modified connected component segmentation and euclidean cluster comparator