Now _speedups.min_max directly uses NumPy arrays