Added algorithm CDA