added quantile table calculation