Input byte stream 

aaaaaaaaaaBaaaaaaaaaaaaaaaaBBaaaaaaaaaaaaBaaaaaaaaaaa
aaaaaaaaaaaaaBaaaaaaaaaaaaaaaaaaaaaBaaaaaaaaaaaaaaaaa
aaaaBaBaaaaaaaaaaaaaaaaaaaaaaaaaaBBBBBBBBBBaaaaaaaaaa
aaaaaaaaaaaaaaaaBBBaaaaaaaaaaaaaaaaaaaBBaaaaaaaaaaaaa
aaaaaaaaBaaaaaaaaaaaaaaaaaaaaaaaaBaaaaaaaaaaaaaaaaBaa