palindrome algorithm started