added greedyknapsack algo