Add functionality to automatically determine the optimal number of clusters.
Add functionality to automatically determine the optimal number of clusters.