Implemented polygon clipping + tests. More tests probably needed.