Performance of CMS Muon Reconstruction in Cosmic-Ray Events