find if two line segment intersect