fixed bug on make_monotone.cc when dealing with degenerate polygons