Line Segment Intersection

The following code detects all intersection of randomly generated line segments, in O(nlogn) time complexity.

Number of intersections : 0