centroid implemented