This patch adds the 'Median' function to the math node, which outputs the median of the three input numbers.
Currently, it only works on float math, because the median of vectors is not well defined.
While this can be done using the current nodes, it is messy and having a dedicated function is more convenient.
This patch implements the feature for Cycles, EEVEE, Geometry Nodes, and the Compositor.
