Updating the systematic encoder ot use internal count
added video structure encoding. set_parity() function from video ensures the next