Y monotonic polygon check.