A simple C++ linked list class