Change both stack and queue to same offset counters.
This allows the stack and deque class to use the same offset, making it work better with each other.
This allows the stack and deque class to use the same offset, making it work better with each other.