add Without Repetitions

C, Haskell