fixed sub- and upsampling, adapted sconv for non-quadratic matrices.
sub- and upsample once for all.