fix function name to percentile() and percentiles(), add definitions and tests