adding median calculator