ComputeMaxInfoGains function

Max information gains