Doubly linked list for data structures class