rangeCheck function

Check for horizontal and vertical extrapolation