Need resource for sliding window protocol

sliding-window

#1

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