add isSameTree.