I added a median function

A cool pull request