I added a median function
Merge pull request #1 from tracysmith/median

Looks good enough.