not sure if I successfully implemented doubly linked list functions