dense matrix save/load