UPC Parallelizing Knapsack Homework