@SuppressWarnings("unchecked") public BinaryVector copy(){
  BinaryVector copy=new BinaryVector(dimension);
  copy.bitSet=(FixedBitSet)bitSet.clone();
  if (!isSparse)   copy.votingRecord=(ArrayList<FixedBitSet>)votingRecord.clone();
  return copy;
}

@ SuppressWarnings ( "unchecked" ) public BinaryVector copy ( ) { BinaryVector copy = new BinaryVector ( dimension ) ; copy . bitSet = ( FixedBitSet ) bitSet . clone ( ) ; if ( ! isSparse ) copy . votingRecord = ( ArrayList < FixedBitSet > ) votingRecord . clone ( ) ; return copy ; }
returns a new copy of this vector , in dense format .
