A binary time series model with a long-memory structure