update kmeansCluster algorithm