Starting deduplication algorithm