Wrote isEqual methods for Functions and Nodes. Wrote tests for these
methods. Wrote tests for SubtreeSelection, fixed some bugs in
SubtreeSelection.