Added a Polygon class.

I added a Polygon class and did a more OO approach for some of the basic primitive geometrical types. Also an algorithm for clipping a polygon with a semiplane given by a line. Note that the right of the direction of the vector specified by the line will be the clipped portion.