Knapsack skeleton solution in fsharp