Algorithm for Intersection of 2 Lines