Fixed max(int[] values) to accommodate for empty arrays and ints less than -9999