Doubly Linked List C++ Template