update Max_Points_on_a_Line by using HashMap