Create LinearSpaceKnapsack.java

knapsack implementation as a linear scan solution to save space