added palindrome.rb api and recursive

pull my face