Interleaver using in-place interleaving