Efficient resampling and calculation of medians with confidence intervals
