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

Add example to doc for `slice::ImmutableSlice::binary_search`.

Fix #17817.