Text this: Quantum Speedup of the Dispersion and Codebook Design Problems