Local Patterns in Biological Sequences