Centroid-based clustering and an ideal number of clusters