Cluster method update centroid still not working