A stack and queue implemented in C++