implemented quantile classifier