Sets bit at position pos in integer b to state
assert(setBit(0, 0, true) == 1); assert(setBit(1, 0, false) == 0);
See Implementation
Sets bit at position pos in integer b to state