Added (naive) functions Intersects() and IsSelfIntersecting() to Polygon. Refactored the Triangulation example and added input checking. If any polygons are self intersecting or if there are any pairs of intersecting polygons, then the input is thrown away.