moved distances to 'diffeo' package