Added longest palindrome calculator

Ensured all tests for sorting pass