Starting K-Means algorithm.