Computes length of longest subsequence of characters in a string that is a palindrome.