Added a biased reservoir sampling for computing global medians