Changed the bitset type from signed char to unsigned char (could be a
problem when shifting bits in the future)