rewrite leetcode preorder and inorder to build binary tree