Added copy constructors and assignment operators to classes with allocated resources