Refactor operator<< to use function member ‘print()’. Eliminate unnecessary setters. Set::add now checks if the set is empty to speed up adding.