topsoe function

Topsoe distance (lowlevel function)