minor fixes to LinkedList/DoublyLinkedList code