Add unique_copy, modify unique to use it
Add tests and benchmarks for unique_copy