adding serialization/deserialization of the tree