SVG simulation of a sweep line algorithm for line segment intersection