the basic version of new k-means working