factor out sampling
merge
blockedSampling looks good for dedupe case