Remove Duplicates

Remove duplicate lines; optionally preserve original order.