added a class that estimates sample quantiles