Added code to check if two trees are mirror images of each other