Implementation of a doubly linked list