Update TwoDSpace , change some of the method to accept const instead