Nearest neighbour search with arbitrary distance function

Original text of this message