speed up AABB/Ray intersection test