implemented Jensen-Shannon distance and their test