Add compute closest centroid