deque/deque and deque/palindrome