Implement std::unique, std::unique_copy, and tests.