added a placeholder median function, needs to be replaced
Median function added
Merge remote-tracking branch 'origin/master'
merged from upstream