k-means Clustering fully working