Quick Sort, pay attention to the change of indexes