Linked list implementation for C++ coding and data structure practice