fix triangulate monotone polygon function and add tests