Fix cda line algorithm, for hermite