Sample C++ linked-list implementation.