added tree construction from passed preorder and postorder array