Move Polylgon data type and functions into own module Elements.Polygon