added median fucntion
Merge pull request #1 from scopatz/master

added median fucntion