On the fast reduction of a quasiseparable matrix to Hessenberg and tridiagonal forms