Interchanges matrix rows and columns.