Check if two binary trees are the same.