Describe an algorithm you designed to merge and deduplicate records from three vastly different data sources.