public BitArray resize(long size){
  bytes.resize(Math.max(size / 8 + 8,8));
  this.size=size;
  return this;
}

public BitArray resize ( long size ) { bytes . resize ( Math . max ( size / 8 + 8 , 8 ) ) ; this . size = size ; return this ; }
resizes the bit array to a new count .
