scalePolygon function added

New function "scalePolygon" added to resize a polygon