Noticed wrong variable comparison when looking over code.
Merge pull request #566 from ejc123/FixMean

Noticed wrong variable comparison when looking over code.
Playing around with Median implementations.
Merge remote-tracking branch 'upstream/master' into Median