committing changes to stats.py
added median function to stats.py