binary sequence generator