Cleaned the code more. The code can now determine the intersection points for slopes going to infinity.