From Small-World Networks to Comparison-Based Search