Finally fixed dumb QuickSort bug