copy constructor and assign operator for Queue