fixed a bug on kmeans++ seeding mechanism