wrote some tools for figuring out perimeter and area of polygons
added stats func