the k-means has been finished except the isStable() function