cuncurrent kmeans implementation