Modeling sequences with structured state spaces