delete function computeCentroids()