added accurate benchmarking of median to tools