check if two trees are identical or not