Architected knapsack problem's solution, about 2 write straightforward impl