Added copy constructor and operator= for Elem structure