add Max points on a line