sweep line test to find line intersection