added common subsequence algorithm