Update queue.cpp