Create knapsack.cpp