copy constructor and assignment operator for PathStore