working kmeans drpc code