Added deque swap method