Implementation of dynamic doubly linked-list