added method for NonDP palindrome search