MAINT: cleaning up percentile function.