Correctly calculate nsmallest for timer percentiels