how to find duplicates in a list