changed bounds checking in multiple kernels to work better with offsets for performance on xeon phi