added a line segment intersection test generator