Sets a bit with the number 'bitnum' in a specifically coded string
'bitfield'. The bitfield string is a string consisting of writable
characters. Each character represents six bits.
The 'bitfield' string is automatically extended to satisfy the setting
of bits outside the current string size.