結果 : how would you implement a binary search algorithm in python