NEW: save a 2D matrix to a .txt file