Implemented FPTAS algorithm for knapsack problem