Template for a doubly linked list.