Given two binary trees, write a function to check if they are equal or not