Add a new option to output the results of the submatrix queries benchmarks in an external output file. This should reduce the memory used for benchmarking.