A simple stack written in C++