Download Algorithm for Discovering Patterns in Sequences