Initial implementation of doubly-linked list in C++