Computation of polygon centroid