A linked list stack module in C++