code that compute information entropy

currently for categorical features