New ear clip triangulation algorithm

based on section 2 of http://www.geometrictools.com/Documentation/TriangulationByEarClipping.pdf