Fast implementation of distance metrics for python.