QuantileMethod using our own algorithm