Add information gain calculation

To-do:
1) Java-doc
2) some comments for use