part 2 k-means image segmentation is done