add a new distance metric