Compares two trees to check whether they are same

Compares the receiver to another tree to see if they are structurally identical.