Binarize tree