Added bitset length to the printBitsetOfACategory function