Implementation of fractional and integer knapsack problem algorithms - intended as Teaching Assistant's solution for Algorithms course