Remove Duplicate Lines

Remove repeated lines while preserving order.