binary search (for the sorted data, we need to use this property).