inlined min max for numba's benefit
update benchmarks