Knapsack Problem Greedy Algorithm In C