Added some hash functions and IsPalindrome.