Returns the median of an array anArray using a sort algorithm.
anArray
the array to consider
the median of anArray, or undefined if the array is empty
Returns the median of an array
anArrayusing a sort algorithm.