Elementary functions for computing of percentile indices (not finished)