Implement the information gain