实现二分查找算法 binary_search,包含测试函数 test_binary_search 支持各种边界情况测试 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>