CCI algorithms implementation