def KMeans in progress