added a method to retrieve the frequency of a bigram + tests