fixed a bug in seeding method for kmeans++