implemented Taneja distance and their test