Adds compare_trees.