Add example to doc for `slice::ImmutableSlice::binary_search`.

Fix #17817.