Add some function in order to benchmark the new implementation of submatrix queries.