Partition around a pivot, then recurse on the left and right subtrees — O(n log n) avg.
WORKING ARRAY