matrix is accessed through arrays of Head nodes. Im having issues using an arraylist to connect it by using two arrays row and column.