Problem
1. What happens when the horizontal-vertical line-intersection procedure is used on a set of lines with arbitrary slope?
2. Write a program to find the number of intersecting pairs among a set of N random horizontal and vertical lines, each line generated with two random integer coordinates between 0 and 1000 and a random bit to distinguish horizontal from vertical.