Basic doubly linked list implementation