Add function to check need for cardinality update
Add function to check need for cardinality update

Records' cardinality may change during the attack for the same target.
This function checks if consecutive samplesets have failed and if
the amount of records for these samplesets is a multiple of the
samplesize. In this case, we assume that the cardinality has changed.

dimriou/rupture,dimriou/rupture,dimkarakostas/rupture,dionyziz/rupture,dimriou/rupture,dimkarakostas/rupture,dimriou/rupture,dionyziz/rupture,dimkarakostas/rupture,dimkarakostas/rupture,dionyziz/rupture,esarafianou/rupture,esarafianou/rupture,dionyziz/rupture,dimriou/rupture,dionyziz/rupture,dimkarakostas/rupture,esarafianou/rupture,esarafianou/rupture