Fix bugs in information gain fuction

Todo:
NCP is still much larger than results in Yeye He's paper.
Maybe it is caused by dataset. But I'm not sure.