Jain R. and Chlamtac I., (1985) The P 2 Algorithm for Dynamic Calculation of Quantiles and Histograms Without Sorting Observations, Communications of the Association of Computing Machinery , 28:10.