Updated insert function.
Added is Palindrome method.