CQM: Curriculum Reinforcement Learning with a Quantized World Model