Stack Data Structure written in C++