Calculates the Kullback-Leibler divergence between distributions for the high-dimensional version of haystack().
Useful links