max_point_on_a_line