Added JavaGeom segment intersection test