replace vector<bool> with bitset