BVH generic class