binary tree representation of trees