Add argument for function that performs median in median_combine

Addresses #74
Merge pull request #80 from mwcraig/median-stuff

Add argument for function that performs median in median_combine