Remove duplicate data in array