palindrome checker via a deque