compare texts for their similarity