Slight refactor of CDF to simplify percentile() method.