Calculate, correctly, the similarity between items