Finds bigrams in a text and writes to file