Added deque push and pop methods