KMeans algorithms for Machine Learning course