Correction of the intersection algorithm

Patch for the intersection algorithm, which now seems to work,
despite the fact that some subkeys, which should be in the dictionary,
seems to not be in.