palindrome index