Removes computeCentroids which was deprecated