Moved quantile code to separate module.