Reimplement longest common subsequence problem using bottom up DP.