construct binary tree from pre and in order traversal