Rosetta Code task: Find the intersection of two lines