If you find this algorithm useful, please cite the following paper. Thanks. M. Rowshan, A. Burg and E. Viterbo, "Polarization-Adjusted Convolutional (PAC) Codes ...