First level trigger using pixel detector for the CMS experiment