We will call call an array A[1..n] "indirectly sorted" by an array
X[1..n] that holds a permutation of indices 1..n if . Using an array of indices
X[1..n], modify QuickSort so that entries of the array A[1..n] to be
indirectly sorted are accessed but not moved.