private BitSet invert(BitSet in) {
        BitSet docs = new BitSet(docNumber);
            for(int i = 0; i < docNumber; i++) {
                docs.set(i, !in.get(i));
            }
    return docs;
    }