Saves a bdd to a file.
Saves the nodes used by r to the file ofile which must be opened for writing.