Change Limit before skipping calculation of min/max

As it turns out, arrays of 1024 x 1024 are common and a more logical cut-off point than 999,999 (the old limit)