array palindrome test not working