put new node on longest segment