implemented K divergence distance and their test