Added ability to compute median on data sets.