optimize the HiCuts tree, do not store empty tree nodes