Added destructor for Map2D class