CCL algorithm