serialization of BT to file works. TODO: deserialization