Use vector<bool> instead of set