Serialize & Deserialize a tree, tree class just has insert function