Added ++ operator

Added sorting and duplicates tests.