added kp to app and moved some kode in KnapsackProblem