Moved calculateInfoGain out of prepareInstances