Adding 'median' to summation and presentations

Implementing issue #241  - adding median to summations.