Longest Common Increasing Subsequence