Submatrix utility for 2D FFT