The informationGain function can compute the individual entropy of single features. Next step is to compute joint entropy of feature and class