Knapsack problem

Implemented knapsack problem recursively. implementation in DP has some
issue, so it's code has been put in #if 0