Kmeans cleanup

this seems to be a heuristic (that should be documented somewhere in the class doc)