Refactor of quicksort into a class complete.