added function to compute mutual information of 1d or 2d distributions