binarize training trees