Data source: http://rosettacode.org/wiki/Knapsack_problem/Continuous