here is the new median function
Merge pull request #1 from jantown75/median

here is the new median function