Debugging kmeans