Added a level set tree function to collapse leaves around a set of active nodes (LevelSetTree.collapseLeaves).