High-density QCD with CMS at the LHC