js: look up table for knapsack problem, does not return answer yet -- only the table