Remove useless codes and variables

Issues remain:
NCP result is 2% larger than Yeye He's paper.
Well, I have review my code for more than 4 times, still
found nothing.