Adds more algorithms including quicksort and mergesort, refines knapsack