Added binary search in pair arrays.
Self-review.