Add knapsack.cpp