Removing shift overflow and the special that goes with it in getMax, and short circuit the 0 case in getMin