start of kmeans