Unique Algorithm

Implemented unique(), added convenience function copy_at_indices() to
detail