Polygon triangulation in O(n^3).