Project 2 for Performance Engineering class. Optimized calculation of line intersections.