Find points of intersection of line segments using sweep line.