fixed some major bugs in the kmeans, ends method when stops changing and possible stops devouring centers