Implemented the search for the optimal Text of the base document for
merging. It is the text which has the smallest count of tokens in other
documents which have no equivalent token in the base text.