add the answer of max points on a straight line in 2D