Added median function to stats.
Merge pull request #1 from yackcap/median

Added median function to stats.