Added vector calculation for entropy and kl divergence