added some basic distance metrics