Added simple check for intersections.
Bently-Ottmann algorithm (incomplete).