check wether 2 b_trees are identical