Add maxpoint in line, change Node to ListNode