construct tree from pre order and in order traversal