Dove-tail two binary searches.