Added nearest-neighbor search algorithm to search manager