added serialization and load method to TSDSpace