A k-nearest neighbor search engine.