operator [] method
Gets the boolean value at the given index
Implementation
bool operator [](int index) {
if (index < 0 || index >= length) return false;
final word = index >> 5;
final bit = index & 31;
return (_data[word] & (1 << bit)) != 0;
}