add code of exhaustive search medoids from centroids