Estimating the probability of approximate matches