added centroid calculation to cluster aggregation
test