ThueMorse smarter version