Change output of ArrayList.dimensionsToCoordinateList from List of Lists to List of int[] - less memory