Reworked row swaps in qrinvert.  My initial idea was dumb.