結果 : write an algorithm for binary search and explain with example