Added 1nn_metric.