theBj = bj
& ((thePy-1)*nSy+theBj-1)*nSx*nPx
theBj = bjN
theBj = bjS
INTEGER thePx, thePy, theBj, theBi