Threaded and not threaded palindrome search program