added a median function

Hi @gonuke, I added a median function, please let me know if you want it!
I didn't know/remember that this was the definition of median for a an even lengthed list.  Do you think we need to add a reference in a comment?