Unique algorithm

Added unique() algorithm, tests and benchmarks. Removed unused variable
in scan_on_gpu() to remove warnings