Change kmeans method. Put labels first and then find their centers. And the centers are initialized with random data.