Selects a pivot, partitions the array around it, then recursively sorts the subarrays.
Explain code with DocComment! Try out your own code!