Added generics to PostingListWithOccurence