centroid calculation, cross validation + evaluation