Refactored algorithm.Knapsack and its test.
Added tests and javadoc for algorithm.SubSets.