Same-sign dileptons as a search tool at CMS