Hearts moved into positive points territory for the first time this season with a 2-1 victory over Ross County.