private void Pi(ulong[] A) { Array.Copy(A, 0, tempA, 0, tempA.Length); for (int x = 0; x < 5; x++) { for (int y = 0; y < 5; y++) { A[y + 5 * ((2 * x + 3 * y) % 5)] = tempA[x + 5 * y]; } } }