k-means commit