Added alternate function to calculate mutual information mi_from_dm_alt (doing it the way I think it should be) has to be tested yet