Longest Common Subsequence of two arrays.