Same comments as for BitVectorImpl: avoid locate "ret", replace ret assignments by immediate return statements, thus un-nest all if clauses.