Added median calculator API