結果 : write the binary search algorithm and discuss its time complexity