Create knapsack_way.cpp