Creates an array of unique values, in order, from the input arrays