updates to compact bvh builder