created min/max functions for numba versions