Added equality operator to check whether 2 trees are identical