Added dynamic capacity to SimpleMap.