Added longest common prefix and longest palindrome substring