Added getCentroid and getRectRegionFromCorners to Geometry