Search for exotic resonances with the CMS experiment