Text this: A Geometric-Primitives-Based Compression Scheme for Testing Systems-on-a-Chip