Update removeDuplicates.R