THE CMS MUON DETECTOR: FROM THE FIRST THOUGHTS TO THE FINAL DESIGN