Compute distance between the two texts
