Explain binary search algorithm.

Technical