Adding QuickSort and fixing tests