Factorize enum_type and boolean_type mutual_information code
Merge pull request #104 from ngeiswei/factorize_mi

Factorize enum_type and boolean_type mutual_information code