Searches for the pair production of scalar leptoquarks at CMS