A vector stack module in C++