fix quick_sort bug