Serialize and Deserialize a BST