Storing the comparisons in a dictionary