cocktailSort() addition.
setRange(start, end, Bar::*state)
For element in Collection range [start, end], set to state.