added type 6, 7 & 8 quantile definitions