I added a median function

Surprise surprise!