trees are identical or not