i added a median function
Merge pull request #1 from abifree/median

Accepted median