support for mass in K-mean clustering (clusteringbykmeans.m)