removeDups function

Remove duplicates from a data table based on a provided primary key; flag duplicates that can't be removed.