Add 4-swap version for matrix rotation