}
public Map2D(int xSize, int ySize, E defaultVal) {
this.xSize = xSize;
this.ySize = ySize;
values = new ArrayList<>(xSize*ySize);
<BUG>setAll(defaultVal);
</BUG>
}
public void set(int index, E val) {
values.set(index, val);

}
public Map2D(int xSize, int ySize) {
this(xSize, ySize, null);
}
public Map2D(int xSize, int ySize, E defaultVal) {
this.xSize = xSize;
this.ySize = ySize;
values = new ArrayList<>(xSize*ySize);
setAllAs(defaultVal);
}
public void set(int index, E val) {
values.set(index, val);
