Elaborated MaxPointsOnALine a little bit