C++ Linked List, practice