change PostingIterator to MemPostingIterator, add PostingIterator interface