Task_1: Final implementation and test of line intersections.