Refactoring quicksort function is underway.