Tried to speed up BVH traversal. Now it is slightly slower than before.