Created LinkedList implementation in C++