update KMeans example