Calculate the median (middle value) of a dataset. Works for both odd and even count datasets.
Median