Fixed error in cluster class

now the center of mass is built considering the mass of the points, and not only the number of them