slightly better BVH construction