computeCentroids() implemented and submitted.