lfsr

lahtonen algo for general case of lfsr sequence length