Added binary search.