Fix bug in longest palindrome; more problems