uniq implemented in golang