Triangulating polygons with Ear-Clipping

This is a part of the triangulation series.