Queue Implementation in C++