pivot matrix -> LU fact, copy -> det