changed the addRow multiplyRow and swapRow