deque: separate the methods that need Copy
deque: avoid Copy in the get function