Add distance functions:

- Euclidean distance
- Squared Euclidean distance
- Chebyshev distance
- Manhattan distance
- Minkowski distance
- Cosine distance
- Tanimoto distance