add longest_common_subsequence test
add longest_common_subsequence
add cache for longest_common_subsequence