This PR fixes the erroneous internal capacity evaluation in `vector<bool>`, which caused a subsequent SIGSEGV error when calling `flip()` on `vector<bool>`. By fixing the internal capacity evaluation, the SIGSEGV is automatically resolved.
This PR simplifies the internal bitwise logic of the `flip()` function for `vector<bool>`, and creates new tests to validate the changes.