Median function added
Merge pull request #1 from Oyserman/master

Median function added