Update MaxPointsonaLine.java