Proceeded the implementation of the k-means.