implemented the kullback-leibler entropy distance