Finished the k-means algorithm.
added the adjusting samples to nearest clusters