Clustering Problem Solution