This is to keep the new TrimTree functionality from breaking any code currently using the public interface. We do this by separating NodeSet from nodePtrSet and creating different functions for each.