Rewrote unweightedGKL cost (in a manner potentially slightly more numerically stable)