Complete calculate_median, incl. resolving for even-sized sets of numbers