Kucharczyk Jerzy
Algorithm 24 - One-dimensional knapsack function