added analysis code in ccn_coding.c