[algorithms.general] Fix typo for search_n's return type