calculating entropyGain