A pull request for the median functions you wrote.

That excellent function needed some super sweet tests.  Behold!