support for splitting data into quantiles