the first solution of knapsack problem ready to use fptas; searching according to price; no memory leaks
final version of fptas; precision is set by the parameter