Fixed swapRows() and swapColumns()