Saving Matrix on a file