How to implement a Berlekamp–Massey algorithm? Explained with easy example Berlekamp–Massey algorithm Cryptography LFSR python +