Function to check if two binary trees are equal or not.