refactored code, included dominance relation: algorithm from martello and Toth for removing items that are infeasible for the solution