std::bitset<> replaced with BitSet<>; stdexcept is not included unless exceptions are enabled