Track and vertex reconstruction in CMS