Refactored filtering of data sets by using a callback to avoid poluting
MemoryComparerManager