Implementing chebdif