Employed use of summation in mlib.getPolygonArea and mlib.getPolygonCentroid