Search for extra dimensions with the CMS detector