Generate binary sequences