Edited the nXi and nC
Added nC and nXi
Fixed bugs in assigning memory for Xi and C
Added debug information
Corrected the nXi