Find non-duplicate values in an array