CARRY_UINV fixed for square matrices