Implementing unique() interface
Completed implementing unique() interface, restructured test functions in main()