MI function

Compute the mutual information of two discrete samples