Builds an inverted index of bigrams