結果 : write binary search algorithm and calculate its worst case time complexity