Set a given bit in a binary integer of arbitrary length.
int setBit(int value, int bit) => value | (1 << bit);