removed excess console logs and standardized naming convention in duplicates algorithm