Implementation of Linked List in C++