transposed the lp matrix before writing to disk