Add method 'unique' to remove repeated values in an array.