Added toFilename and fromFilename to sparse matrices