Adding logic to stop creating child nodes when information gain is not greater than 0