A simple queue implementation on C++