added code for the palindrome functions and they check out
added doc for the same