@staticmethod
def combine(first, rem):
    """
        Combine first and rem results into one (probability, words) pair
        :param first: a tuple in the form: probability, word
        :param rem: a tuple in the form: probability, list_of_words
        :return:
        """
    first_prob, first_word = first
    rem_prob, rem_words = rem
    return first_prob + rem_prob, [first_word] + rem_words
