added docstring to `find_nearest`