LFSR example and Berlekamp-Massey implementattion