Doubly linked list and dictionary