Langiu, A: Optimal Parsing for Dictionary-Based Compression