0 1 knapsack problem using greedy method algorithm