Added row-to-column major formatting to DM, about to remove DFM