Implemented algorithm for reconstructing knapsack and added javadoc
comments