added dimarray percentile and quantile functions