Percentile computation with the bucket algorithm