Implementation of This program implements the P^2 algorithm as documented in "The P-Square Algorithm for Dynamic Calculation of Percentiles and Histograms without Storing Observations," Communications of the ACM, October 1985 by R. Jain and I. Chlamtac. https://dl.acm.org/citation.cfm?id=4378
Got some help from https://github.com/absmall/p2