Added Polygon2D class.