[BUG] fix scipy.linalg.hessenberg

do not permute the input matrix. fixes #3364.