Add an answer of knapsack(p.52).
Use dynamic programming.
Add an answer of lcs(p.56)