finalize dynamicTree for school dataset