adding doubly linked list