A small library for dealing with distance metrics for machine learning or statistics