uniq tool implementation done