Reduction operation that returns the median value. This operation reduces the dimensionality of the data: a matrix becomes a vector (median of each column), and a vector becomes a scalar (median of all elements). See the Julia documentation for details.