create a binary tree or create a tree by its preorder