add save and load for regression tree