Implement box intersection test