Fix bugs in information gain fuction

Previous version will compute leaf node's support, which is incorrect.