I just finish to learning a Knapsack Algorithm and I tried to coding this algorithm