Linked List data structure created in C++