Remove duplicate items from array.