finish quick_sort