finding affine equivalences for S and Sinv boxes