implemented Kumar-Johnson distance and their test