resolve Max_Points_on_a_Line