C++ change queue to deque