Helper package to facilitate the generation of distance matrices