function MIhat = nmi( A, B )