Refactored Knapsack solver file. Created separate file for solver algorithms.