adding support for better multithreading in VoxelTree