new function: combineWithoutDuplicates. Very efficient