Doubly Linked List implemented in C++