update of quick_sort