A linked list implementation of queue in C++