KnapSack & bug fix after travelling salesm refactoring