Reformat the minimax grid data to contain the grid sizes in the header, for simpler parsing. Header should contain a) Number of blocks and b) block length in an easily-parsable manner