Added the Polygon2D class.