Some distance functions in knot theory