Probabilistic Models of Structure in Biological Sequences