2d array for adjacency matrix