fix bug when computing longestCommonSubsequence. Bug in the recursive method