fixing order of coeffs in cheb2leg and leg2cheb