Code work as is but need to find out how to put matrix X into the decoding schedule for extra efficiency