add downsample to reduce time cost
fix cD_minlen error when cD_len mod 8 is zero
changes