quantile_functions_from_data function

Helper to estimate quantile functions from data for NORTA