This naming of parameters clashes with the names in other methods again. In RankedBitVector, "bit" is always boolean, while here it plays the role of "position" and the boolean is called "value". I'd suggest to call the parameters position, bit, and word here.