Almost STL-compliant doubly linked list implementation.