modified bintree
schmerge