Added CD1 algorithm