template Set & Set::add(T & element) { T ** newElements = new T*[capacity]; if(numberOfElements == capacity) { cout << "Doubling capacity "; cout << "from " << capacity; capacity = (capacity*2); cout << "to " << capacity << "\n"; for(int i = 0; i