Selects a pivot guaranteed to split the array into good portions, ensuring linear time selection.
Explain code with DocComment! Try out your own code!