Muon reconstruction and identification at CMS