6.00.2x-CS-Python: Knapsack problem, greedy algorithm.