NMI function

Compute the normalized mutual information of two discrete samples