remove duplicates from array 2