Sorted collection: use binary search to insert items

Use `_.sortedIndex` to determine the new position of an element when inserting items in the simple `iterator` case. Continue delegating to `sort` for the comparator case.

Resolves #3242