Working 2-pass quantiles