add two functions to save and load the problem, all tests passed.