Swap x and y
Compute block normalization