Solved Maxpoints on a line problem