Need resource for sliding window protocol

Can anyone give me some links to sliding window protocol in 2D array? I am trying to solve SPOJ.com - Problem KPMATRIX problem. I can solve similar problems in 1D using sliding window, but for 2D I am out of luck.