Implement `removeSubsets` method

This allows other libraries to ensure that manually-created collections
of nodes contain only unique trees.