The recent events has thought us the hard way that we should not use binary search if a container can have duplicates. The society pallet is a good example of what should be done if there are duplicates: https://github.com/paritytech/substrate/blob/master/frame/society/src/lib.rs#L1205