stack and queue using C++