finished bvh speedup