Implement bitvector, bwt