3 ways of deleting duplicates in an arrays