Now produces correct keystream output for example dataset 3