added palindrome.rb api and recursive