Doubly linked list Templates