Augment Vector class with centroid function