Update LinkedList.pop() method