Edited mutual info function to better handle when you pass lists of bin edges for multidimensional vectors