Implemented bounding box intersection test.