The very first lab for c++ courses, version 3, removing duplicates