moved to performing cuts on the trees rather than on the datasets to improve speed