Preorder to binary tree