faster distance metric
more tests