Give an algorithm to find the median of given integers, and analyze its complexity.
See [SED00] for a detailed answer.