Bentley-ottman segments intersection algorithm
segments: