writing NonDuplicateArrayList