Added mlib.getPolygonCentroid