Compressing Bi-Level Images by Block Matching on a Tree Architecture