Coding of Two-Level Pictures by Pattern Matching and Substitution