Fractional Knapsack Problem In C