Finishes Quick Sort and solves Hash Sort.