add binary search algorithm.