udpated and fixed the max points on a line problem.