Matrix to replace Array2D