refactored and added "error checking" (ignore bigrams not found in corpus)