This is c implement of CiCT