added assignment 2: knapsack
partially implemented solution.  I think I need to dynamically allocate array size