Simple queue in C++