Computing the similarity between faces