Refactor unique element computation.
Fixed uniq return value and introduced abstract operator class.
typo.