Updated the greedy knapsack algorithm to that with a performance guarantee.