Test reading and writing a matrix of 1,000,000 integers.