Binary search with find first or last.