Added early-out optimization to intersect check.

Comparing whether the x coordinates don't overlap is a reliable early-out optimzation for the line segment intersect check algorithm.