Added mongo promise library and refactored some of the Knapsack algorithm.