Returns the median of an array anArray using the Median of medians algorithm.
anArray
if the array is empty
the array to consider
the median of anArray, or undefined if the array is empty
Returns the median of an array
anArrayusing the Median of medians algorithm.Throws
if the array is empty