fixed some small bugs in accumulator and replaced unordered_set by bit set in visited docno set