Binary Image Compression via Monochromatic Pattern Substitution: Sequential and Parallel Implementations