BinaryWriter& write(BinaryWriter& bin, const multi2d<T>& d)
NmlWriter& write(NmlWriter& nml, const string& s, const multi2d<T>& s1)
BinaryWriter& write(BinaryWriter& bin, const multi2d<T>& d){  for(int j=0; j < d.size2(); ++j)    for(int i=0; i < d.size1(); ++i)      write(bin, d[j][i]);  return bin;}