Changed BitArray's bitPosition to be between 0 and 7 instead of 1 and 8