Linalg 3 lu

lu take permutation into account.
all features (as_terminal assign_swap etc.) devlped in qr and nseig passes are used there
tests are for real complex and sub
why is there an explicit loop here?