speedup trick for merge sort switch between the input array and aux array to avoid copying