Matrix reformatter for minion output files (assumes presence of sum of sides)