Create an array without duplicates