kmeans debuged, tested
bugfix