For the $8 \times 8$ Benes network, use the looping algorithm to find the paths for the following permutation:
$$
\begin{array}{lllllllll}
\text { input } & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\
\text { output } & 3 & 6 & 2 & 1 & 8 & 4 & 5 & 7
\end{array}
$$