Add Kmeans support functions
kmeans complete