Use arr.uniq rather than my own function